package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.entity.Speed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SpeedMapper extends BaseMapper<Speed> {
    /**
     * 实时传输速率
     *
     * @return
     */
    @Select("select eui, totalFileNum, acceptFileNum, speed from speed_table where eui = #{eui}")
    Speed getSpeedNow(@Param("eui") String eui);
}
